<html>
<head><title>Test Page</title></head>

<table border>
  <tr>
    <th colspan="4"> GET: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_main.lua?field1=ab&field2=cd&field1=ef">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_main.lua?field1=ab&field2=cd&field1=ef">fcgi</a></td>
    <td><a href="/t/test_main.lua?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_main.lp?field1=ab&field2=cd&field1=ef">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_main.lp?field1=ab&field2=cd&field1=ef">fcgi</a></td>
    <td><a href="/t/test_main.lp?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>

  <tr>
    <th colspan="4"> POST: </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              field 2: <input type="text" name="field2"><br>
              field 3:
                <input type="checkbox" name="field3" value="op 1">op 1
                <input type="checkbox" name="field3" value="op 2">op 2
                <input type="checkbox" name="field3" value="op 3">op 3
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[0].action='/cgi-bin/cgi/t/test_main.lua';document.forms[0].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/fcgi/fastcgi/t/test_main.lua';document.forms[0].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/t/test_main.lua';document.forms[0].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[0].action='/cgi-bin/cgi/t/test_main.lp';document.forms[0].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/fcgi/fastcgi/t/test_main.lp';document.forms[0].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/t/test_main.lp';document.forms[0].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>

  <tr>
    <th colspan="4"> POST (with upload): </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" enctype="multipart/form-data" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              file (binary!): <input type="file" name="file"><br>
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[1].action='/cgi-bin/cgi/t/test_main.lua';document.forms[1].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/fcgi/fastcgi/t/test_main.lua';document.forms[1].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/t/test_main.lua';document.forms[1].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[1].action='/cgi-bin/cgi/t/test_main.lp';document.forms[1].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/fcgi/fastcgi/t/test_main.lp';document.forms[1].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/t/test_main.lp';document.forms[1].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <th colspan="4"> Cookies: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_cookies.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_cookies.lua">fcgi</a></td>
    <td><a href="/t/test_cookies.lua">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_cookies.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_cookies.lp">fcgi</a></td>
    <td><a href="/t/test_cookies.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Filesystem: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_fs.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_fs.lua">fcgi</a></td>
    <td><a href="/t/test_fs.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Session: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_session.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_session.lua">fcgi</a></td>
    <td><a href="/t/test_session.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> CGI Variables: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_variables.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_variables.lp">fcgi</a></td>
    <td><a href="/t/test_variables.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Library Overview: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/overview.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/overview.lp">fcgi</a></td>
    <td><a href="/t/overview.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Concurrency </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_conc.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_conc.lua">fcgi</a></td>
    <td><a href="/t/test_conc.lua">module</a></td>
  </tr>
</table>
<small>$Id: test_main.html,v 1.12 2004/11/25 10:52:58 tomas Exp $</small>
</html>
